package com.jzo2o.foundations.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.domain.ServeType;
import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-03
 */
public interface ServeMapper extends BaseMapper<Serve> {
    // 查询区域设置的服务
    List<ServeResDTO> selectregionSetServe(Long regionId);
    // 查询当前区域是否又上架的服务
    int queryServeCountByRegionIdAndSaleStatus(Long id, int status);
    // 查询首页服务服务类型，以及对应类型的服务项
    List<ServeCategoryResDTO> selectServeTypeList(Long regionId);
    // 查询服务类型列表
    List<ServeType> getServeType(Long regionId);
    // 查询热门服务数据
    List<ServeAggregationSimpleResDTO> getHotServe(Long regionId);
    // 远程调用查询服务信息接口
    ServeAggregationResDTO getServeInfo(Long serveId);
}
